From: Giovanni Campagna Date: Mon, 21 Apr 2014 16:58:56 +0000 (+0200) Subject: rfkill: fix turning off airplane mode from the menu X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2534 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2f720e22fcdffa83de6000b27fe9181d610e94f7;p=gnome-shell.git rfkill: fix turning off airplane mode from the menu The menu does not have a proxy anymore, it needs to go through the manager. https://bugzilla.gnome.org/show_bug.cgi?id=728512 --- diff --git a/js/ui/status/rfkill.js b/js/ui/status/rfkill.js index e14da8cea..b9d3eaf67 100644 --- a/js/ui/status/rfkill.js +++ b/js/ui/status/rfkill.js @@ -83,7 +83,7 @@ const Indicator = new Lang.Class({ this._item.icon.icon_name = 'airplane-mode-symbolic'; this._item.status.text = _("On"); this._offItem = this._item.menu.addAction(_("Turn Off"), Lang.bind(this, function() { - this._proxy.AirplaneMode = false; + this._manager.airplaneMode = false; })); this._item.menu.addSettingsAction(_("Network Settings"), 'gnome-network-panel.desktop'); this.menu.addMenuItem(this._item);